﻿using System;
using System.Collections.Generic;
using System.Text.Json;
using System.Text.Json.Serialization;
//using NUnit.Framework.SyntaxHelpers;

namespace Eamon.MeituanDotnetSDK.api.common.response
{
    [Serializable]
    public class PageModel<T>
    {
        public PageModel()
        {
        }

        [JsonPropertyName("page_size")]
        private int pageSize;

        [JsonPropertyName("total_number")]
        private int totalNumber;

        private List<T> records;

        /// <summary>
        /// 头条信息列表
        /// </summary>
        private List<T> headlineList;

        /// <summary>
        /// 排行榜信息列表
        /// </summary>
        private List<T> rankingList;

        [JsonPropertyName("current_page")]
        private int currentPage;

        public int PageSize
        {
            get
            {
                return pageSize;
            }
            set
            {
                pageSize = value;
            }
        }

        public int TotalNumber
        {
            get
            {
                return totalNumber;
            }
            set
            {
                totalNumber = value;
            }
        }

        public List<T> Records
        {
            get
            {
                return records;
            }
            set
            {
                records = value;
            }
        }

        public int CurrentPage
        {
            get
            {
                return currentPage;
            }
            set
            {
                currentPage = value;
            }
        }

        public List<T> RankingList
        {
            get
            {
                return rankingList;
            }
            set
            {
                rankingList = value;
            }
        }

        public List<T> HeadLineList
        {
            get
            {
                return headlineList;
            }
            set
            {
                headlineList = value;
            }
        }
    }
}
